package com.example.yichuangyun.mvvm.ui.map;

import com.amap.api.maps.model.LatLng;
import com.amap.api.maps.model.Marker;
import com.example.yichuangyun.model.company.CompanyDataModel;

import java.util.ArrayList;
import java.util.List;

public class Cluster {

    private LatLng mLatLng;
    private List<CompanyDataModel.CompanyModel> mClusterItems;
    private Marker mMarker;


    Cluster(LatLng latLng) {
        mLatLng = latLng;
        mClusterItems = new ArrayList<>();
    }

    void addClusterItem(CompanyDataModel.CompanyModel clusterItem) {
        mClusterItems.add(clusterItem);
    }

    int getClusterCount() {
        return mClusterItems.size();
    }


    LatLng getCenterLatLng() {
        return mLatLng;
    }

    void setMarker(Marker marker) {
        mMarker = marker;
    }

    Marker getMarker() {
        return mMarker;
    }

    List<CompanyDataModel.CompanyModel> getClusterItems() {
        return mClusterItems;
    }
}
